﻿
using System;

namespace HttpClient
{
	public static class DoDelete
	{
		public class DoDeleteUrl
		{
			HttpRequest request = new HttpRequest();
			public HeaderConfiguration<DoDeleteUrl> Using {get; private set;}
			public ContentConfiguration<DoDeleteUrl> InContent { get; private set; }
			
			public DoDeleteUrl(String url)
			{
				request.url = url;
				request.method = HttpMethod.DELETE;
				Using = new HeaderConfiguration<DoDeleteUrl>(request, this);
				InContent = new ContentConfiguration<DoDeleteUrl>(request, this, Using);
			}
			
			public HttpResponse ThenCall(HTTPClient client)
			{
				return client.Execute(request);
			}
		}
		
		public static DoDeleteUrl On(String url)
		{
			return new DoDeleteUrl(url);
		}
	}
}
